package com.zhang.service.client;

import com.zhang.entity.response.ResponseResult;
import com.zhang.entity.vo.ExecuteCommandBody;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * User: 张
 * Date: 2024-11-28
 * Time: 11:22
 * Description:
 */
@FeignClient(name = "device-service" ,fallback = QuartzClientFallback.class)
public interface QuartzClient {
    @RequestMapping("/device/job/hello")
    public String helloTest();

    @PostMapping("/device/script/executeCommand")
    public ResponseResult<Object> executeCommand(@RequestBody ExecuteCommandBody executeCommandBody);
}
